home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / nShell Prog / Programmer's Guide / 08 Callbacks - Stderr < prev    next >
Encoding:
Text File  |  1994-09-04  |  1.1 KB  |  74 lines  |  [TEXT/ttxt]

  1. 08 Callbacks - Stderr
  2. =====================
  3.  
  4. These routines print to Standard Error (stderr) and are compatible with nShell I/O redirection.
  5.  
  6. NSH_printf_err
  7. --------------
  8.  
  9. void NSH_printf_err(const char *fmt, ...);
  10.  
  11. PARAMETERS
  12.  
  13.     Quite a few, please refer to a  C language reference.
  14.  
  15. RETURNS
  16.  
  17.     none
  18.  
  19. PROCESS
  20.  
  21. All parameters are converted to a character string.  The resulting string is sent to Standard Error.
  22.  
  23. NSH_putchar_err
  24. ---------------
  25.  
  26. void NSH_putchar_err(char c);
  27.  
  28. PARAMETERS
  29.  
  30.     char    c    character to be output
  31.  
  32. RETURNS
  33.  
  34.     none
  35.  
  36. PROCESS
  37.  
  38. The passed character is printed on Standard Error.  Note that a lot of overhead is involved in sending a single character back through to a shell.  Whenever possible, use NSH_puts_err or NSH_putStr_err to output larger blocks of text.
  39.  
  40. NSH_puts_err
  41. ------------
  42.  
  43. void NSH_puts_err(char *s);
  44.  
  45. PARAMETERS
  46.  
  47.     char    *s    address of a string to be output
  48.  
  49. RETURNS
  50.  
  51.     none
  52.  
  53. PROCESS
  54.  
  55. The passed string is printed on Standard Error. 
  56.  
  57. NSH_putStr_err
  58. --------------
  59.  
  60. void NSH_putStr_err(Str255 s);
  61.  
  62. PARAMETERS
  63.  
  64.     Str255        s    address of a string to be output
  65.  
  66. RETURNS
  67.  
  68.     none
  69.  
  70. PROCESS
  71.  
  72. The passed string is printed on Standard Error. 
  73.  
  74.